﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wix.Aura.Common.CustomTypes;

namespace Wix.Aura.Common {
	public class IniFileSearch : Search {
		public IniFileSearch(string id, string key, LongFileNameType name, string section) : base(id) {
			Key = key;
			Name = name;
			Section = section;
		}

		public int? Field { get; set; }
		public string Key { get; set; }
		public LongFileNameType? LongName { get; set; }
		public LongFileNameType Name { get; set; }
		public string Section { get; set; }
		public ShortFileNameType? ShortName { get; set; }
		public FileType? FileType { get; set; }

		public override System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public override void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public override void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("IniFileSearch");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("Field", Field);
			writer.WriteAttribute("Key", Key);
			writer.WriteAttribute("LongName", LongName);
			writer.WriteAttribute("Name", Name);
			writer.WriteAttribute("Section", Section);
			writer.WriteAttribute("ShortName", ShortName);
			writer.WriteAttribute("Type", FileType);
			writer.WriteEndElement();
		}
	}
}
